package com.hao.tool.web.module.base.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * description
 *
 * @author RuiHaoZ on CMHK.jx
 * @date 2020-06-30 23:28
 */
@Getter
@Setter
@TableName("TB_SHORT_INFO")
public class ShortInfo {
    public ShortInfo(String shortId, String longId) {
        this.id = shortId;
        this.longId = longId;
        this.createTime = LocalDateTime.now();
    }

    @TableId
    @TableField("ID")
    private String id;
    @TableField("CREATE_USER")
    private String createUser;
    @TableField("CREATE_TIME")
    private LocalDateTime createTime;
    @TableField("SHORT_TYPE")
    private String shortType;
    @TableField("LONG_ID")
    private String longId;
    @TableField("REST_URL")
    private String restUrl;
}

